package com.tool.auto.controller;

import com.tool.auto.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 酒徒
 * @Version 1.0
 * @data 2024/1/23 17:51
 */
@RestController
@RequestMapping("/employee")
public class EmployeeController {

    @Autowired
    private EmployeeService employeeService;

    /**
     * 新建employee信息
     */
    @GetMapping("/create")
    public void createEmployee() {
        employeeService.createEmployee();
    }

    /**
     * 修改employee信息
     */
    @GetMapping("/update")
    public void updateEmployee() {
        employeeService.updateEmployee();
    }

}
